﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logger.Service.Interface
{
    /// <summary>
    /// 日志接口服务
    /// </summary>
    public interface ILoggerContext
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="args"></param>
        void Debug(string msg, params object[] args);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="err"></param>
        void Debug(string msg, Exception err);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="args"></param>
        void Info(string msg, params object[] args);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="err"></param>
        void Info(string msg, Exception err);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="args"></param>
        void Warn(string msg, params object[] args);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="err"></param>
        void Warn(string msg, Exception err);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="args"></param>
        void Error(string msg, params object[] args);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="err"></param>
        void Error(string msg, Exception err);


    }
}
